//
//  SEGAuthCodeView.h
//  SEGUhomeStandard
//
//  Created by 乔杨 on 2019/4/9.
//  Copyright © 2019 刘山. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, SEGAuthCodeViewStyle) {
    SEGAuthCodeViewRegisterStyle,
    SEGAuthCodeViewSecurityStyle
};

@protocol SEGAuthCodeViewDelegate <NSObject>

- (void)authCode_checkAuthCodeWithCode:(NSString *)code randomToken:(NSString *)randomToken;

@end

@interface SEGAuthCodeView : UIView

/** delegate */
@property(nonatomic, weak) id<SEGAuthCodeViewDelegate> delegate;
/** 手机号 */
@property (nonatomic, copy) NSString *phoneStr;
@property (nonatomic, copy) void (^confirmBlock)(NSString *code, NSString *randomToken);
@property (nonatomic, assign) SEGAuthCodeViewStyle style;
@property (nonatomic, assign) BOOL isShow;

/**
 显示
 */
- (void)show;
/**
 隐藏
 */
- (void)dismiss;

/**
 * 刷新验证码
 */
- (void)refreshCodeImg;

@end


